package com.feeyin.radar.crm.dao;

import com.feeyin.radar.crm.model.BackCost;
import com.feeyin.radar.crm.model.BackCostNew;

import java.math.BigDecimal;
import java.util.List;

public abstract interface ContractBackCostDAO
{
  public abstract List getBackCosts(Integer paramInteger);

  public abstract BigDecimal getTotalBackCost(Integer paramInteger);

  public abstract BigDecimal getTotalBackCostByDynamic(BackCost paramBackCost);

  public abstract boolean insertBackCost(BackCost paramBackCost);

  public abstract boolean updateBackCost(BackCost paramBackCost);

  public abstract boolean deleteBackCost(Integer paramInteger);

  public abstract List getBackCostContractByDynamic(BackCost paramBackCost);

  public abstract BigDecimal getYeJiBackCostContractByDynamic(BackCost paramBackCost);
  
  public boolean insertBackCostNew(BackCostNew backCostNew);
  
  public boolean isDuplicateBackCostNew(String backCostNum);
  
  public List<BackCostNew> getBackCostNewListByContractId(String contractId);
  
  public BackCostNew getBackCostNewById(String backCostId);
  
  public boolean updateBackCostNew(BackCostNew backCostNew);
}